package com.sens.alipay.utils;

import com.sens.common.Base64;
import com.sens.common.JsonUtils;

public class SupportVersion {
    public static final String[] VERSIONS = new String[]{
            new String(Base64.decode("MTAuMS41MC41MzIy")),
            new String(Base64.decode("MTAuMS4zOC4yMTM5")),
            "10.1.30.663"
    };

    public static String getSupportVersion() {
        return JsonUtils.parserBean2Json(VERSIONS);
    }

    public static boolean checkSupportable(String versionName) {
        for (String version : SupportVersion.VERSIONS) {
            if (version.equals(versionName)) {
                return true;
            }
        }
        return false;
    }
}
